package cwb1;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class LearningTime extends Activity {
		// The course for which the practice activity is intended to be.
		private String courseId;
		
		public LearningTime(Date startDate, String userId, Long activityType ,String courseId) {
			super(startDate, userId, activityType);
			this.courseId = courseId;
		}
		
		public LearningTime(Map<String, Object> properties) {
			super(properties);
			courseId = (String) properties.get("courseId");
		}
		
		public HashMap<String,Object> getProperties() {
			HashMap<String,Object> properties = super.getProperties();
			properties.put("courseId",courseId);
			return properties;
		}
		
		/**
	     * Returns the courseId.
	     * @return The courseId of the course of the college.
	     */
	    public String getCourseId()
	    {
	        return courseId;
	    }

}
